import 'package:json_annotation/json_annotation.dart';

part 'bt_product.g.dart';

@JsonSerializable()
class BtProduct {
  final String productId;
  final String name;
  final int coin;
  final String cover;

  const BtProduct({
    required this.productId,
    required this.name,
    required this.coin,
    required this.cover,
  });

  factory BtProduct.fromJson(Map<String, dynamic> json) => _$BtProductFromJson(json);

  Map<String, dynamic> toJson() => _$BtProductToJson(this);
}
